let mind = document.querySelector('.mind')
let span = document.querySelector('span')
let foot = document.querySelector('.footer1>div>b:nth-of-type(3)')
let pin = document.querySelector('.pin')
function getQueryString() {
    let url = location.href
    let reg = /(?<=\?).*/
    let r = url.match(reg)
    let rm = r[0]
    console.log(rm)
    fetch('http://chst.vip:1234/api/getmoneyctrlproduct?' + rm)
        .then(body => body.json())
        .then(res => {
            console.log(res)
            let reg = res.result[0]
            console.log(reg)
            let regExp = /(?<=imgurl=)[^'"]*/;
            let img = reg.productImg2.match(regExp)
            console.log(img)
            let el = `<div class="title">${reg.productName}</div>
        <div><b>${reg.productFrom}</b>|<b>${reg.productTime}</b><b>${reg.productTips}</b></div>
        <div><p><img src=${img[0]} alt=""/>${reg.productInfo}${reg.productInfo1}</p></div>
        <div><img src=${img[0]} alt=""/>
        ${reg.productCity}
        </div>
        <div class=""></div>
        `
            let se = `${reg.productComment}`
            mind.innerHTML = el
            pin.innerHTML = se
        })
}
getQueryString()